package com.icinfo.cloud.provider.punish.common.log.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author zhoulx
 * @date 2023/5/9
 */
@Data
@NoArgsConstructor
public class SysLogQueryVO {

    /**
     * 操作人员名称
     */
    private String operatorName;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime operateTime;

    /**
     * 操作类型
     */
    private String operateType;

    /**
     * 操作详情
     */
    private String operateDetail;

    /**
     * 操作人员所属单位名称
     */
    private String operatorOrgName;

    /**
     * 操作人IP
     */
    private String operatorIp;

    public String getOperateType() {
        String operateTypeDesc = "";
        switch (operateType) {
            case "1":
                operateTypeDesc = "系统登录";
                break;
        }
        return operateTypeDesc;
    }
}
